<!--#layout("/common/layout.html",{"jsBase":"/js/cms/employeeManage/"}){ -->

<form class="layui-form " id="addForm">
	<div class="layui-row">
        <div class="layui-form-item">
            <label class="layui-form-label">登录账号</label>
            <div class="layui-input-inline">
                <input type="text" id="code" name="code"
                       placeholder="" autocomplete="off" class="layui-input input-readonly"
                       value="" readonly>
            </div>
        </div>


	</div>


    <input type="hidden" name="state" value="S1">

    <div class="layui-row">
        <div class="layui-form-item">
            <label class="layui-form-label">证件类型<span style="color: red">*</span></label>
            <div class="layui-input-inline">
                <layui:simpleDictSelect style='layui-input-inline' type="idType"
                                        id="cardType" name="cardType" value="" lay-verify="required"/>
            </div>

    </div>
    <div class="layui-row">
            <div class="layui-form-item">
                <label class="layui-form-label">证件号码<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                <input type="text" id="cardNumber" name="cardNumber"  lay-verify="required"
                       placeholder="请输入" autocomplete="off" class="layui-input"
                       value="">
                </div>
            </div>

    </div>

        <div class="layui-row">

            <div class="layui-form-item">
                <label class="layui-form-label">用户姓名<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" name="name" autocomplete="off"
                           placeholder="请输入标题" class="layui-input" value="" lay-verify="required">
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-form-item">
                <label class="layui-form-label">登录密码</label>
                <div class="layui-input-inline">
                    <input type="text" name="password" readonly autocomplete="off"
                           placeholder="" class="layui-input input-readonly" value="abc123">
                </div>
            </div>
        </div>


	<layui:submitButtons id="saveUser" />
</form>
<!--#} -->
<script>

    layui.use(['add'], function(){
        var userAdd = layui.add
         userAdd.init();

        $("#cardNumber").blur(function(){
            $("#code").val($("#cardNumber").val());
        })
    });

</script>

